FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
FILESEXTRAPATHS:prepend := "${THISDIR}/${PKG_NAME}:"

SRC_URI += "\
    file://create_usbhid.sh \
    file://0001-Virtual-USB-creation-with-phytium-features.patch \
   "

RDEPENDS:${PN} += "bash"

inherit obmc-phosphor-systemd

SYSTEMD_SERVICE:${PN} += "start-ipkvm.service"

do_install:append() {
    install -d ${D}/usr/bin
    install -m 0755 ${WORKDIR}/create_usbhid.sh ${D}/usr/bin/create_usbhid.sh
}
